﻿@model CREAPA.Dominio.Setor
@using CREAPA.UL.Web.HtmlHelpers

@{
    ViewBag.Title = "Excluir";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Excluir Setor</h2>

<h3>Você realmente deseja excluir esse Setor?</h3>
<fieldset>
    <legend><b>Setor</b></legend>
    <p>
    <div class="display-label">
     <b> @Html.DisplayNameFor(model => model.Nome)</b>
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Nome)
    </div></p>
    <p>
    <div class="display-label">
     <b> @Html.DisplayNameFor(model => model.Email)</b>
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Email)
    </div></p>
    <p>
    <div class="display-label">
     <b> @Html.DisplayNameFor(model => model.Sigla)</b>
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Sigla)
    </div></p>
    <p>
    <div class="display-label">
      <b> @Html.DisplayNameFor(model => model.Inspetoria)</b>
    </div>
    <div class="display-field">
        @Html.DisableableDropDownList("Inspetoria",null,null, new { id = "cbGender1", style = "width:100px;"})
    </div></p>
    <p>
    <div class="display-label">
      <b> @Html.DisplayNameFor(model => model.PermiteOS)</b>
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PermiteOS)
    </div></p>
    @using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
        <p>
         <input type="submit" value="Excluir" class="button" />
         @Html.ActionLink("Voltar", "Index",null,new { @class = "button2" })
      </p>
}
</fieldset>

<script type="text/javascript">
    $("#cb_Toggle").ready(function () {
        var $Gender = $("#cbGender1");

        $Gender.disableDropDownList();
    });
</script>   




